/*
 * @Author: esraiskan
 * @Date: 2022-09-21 09:11:48
 * @LastEditTime: 2022-12-05 10:11:49
 * @LastEditors: esraiskan
 * @Description: 描述
 */
import {get,post,postObj,put,Delete,putAction} from '../utils/manage';

const app = {
  getAppVersionList:(p) => get('qbt/qbtAppNewestVersion/list', p),//获取app版本列表
  apptoPublish:(p) => get('qbt/qbtAppNewestVersion/publish', p),//app发布
  addAppVersion:(p) => postObj('qbt/qbtAppNewestVersion/add', p),//新增app发布
  editAppVersion:(p) => putAction('qbt/qbtAppNewestVersion/edit', p),//編輯app发布
 getOptionsSettingList:(p) => get('qbt/qbtBourseOrder/list', p),//获取期权列表
 
 getSwiperImgList:(p) => get('qbt/qbtAdvertisement/list', p),//获取期权列表

  getOptionsSettingDetail:() => get('qbt/qbtBourseConfig/queryById'),//获取期权设置详情

  editOptionsSettingDetail:(p) => putAction('qbt/qbtBourseConfig/edit',p),//获取期权设置详情

  addSwiperImg:(p) => postObj('qbt/qbtAdvertisement/add',p),//新增轮播图

  editSwiperImg:(p) => putAction('qbt/qbtAdvertisement/edit',p),//编辑轮播图
  delSwiperImg:(p) => Delete('qbt/qbtAdvertisement/delete',p),//删除轮播图


  getPostersImgList:(p) => get('qbt/qbtPoster/list', p),//获取海报列表
  addPostersImg:(p) => postObj('qbt/qbtPoster/add',p),//新增海报

  editPostersImg:(p) => putAction('qbt/qbtPoster/edit',p),//编辑海报
  delPostersImg:(p) => Delete('qbt/qbtPoster/delete',p),//删除海报


  getSystemUserList:(p) => get('sys/user/list',p),//获取系统用户列表

  getSystemUserRole:(p) => get('sys/user/queryUserRole',p),//获取对应角色
  

  delSystemUser:(p) => Delete('sys/user/delete',p),//删除系统用户

  addSystemUser:(p) => postObj('sys/user/add',p),//添加系统用户

  checkAddSystemUser:(p) => get('sys/duplicate/check',p),//添加系统用户


  

  changeUserPwd:(p) => putAction('sys/user/changePassword',p),//修改系统用户密码

  changeUserFrozen:(p) => putAction('sys/user/frozenBatch',p),//冻结解冻
  
  
  

  getSystemRoleList:(p) => get('sys/role/queryall',p),//获取系统职务列表

  getSystemDepartList:(p) => get('sys/sysDepart/queryTreeList',p),//获取系统部门列表

  getTagList:(p) => get('qbt/label/list',p),//获取标签列表

 addTag:(p) => postObj('qbt/label/add',p),//新增标签

  editTag:(p) => putAction('qbt/label/edit',p),//编辑标签

  getNodeTagList:(p) => get('qbt/label/getParentList',p),//获取上级标签

  

  delTag:(p) => Delete('qbt/label/delete',p),//删除标签


  getCreditRulesList:(p) => get('qbt/qbtRule/credit/search',p),//获取征信规则管理

  getLawsRulesList:(p) => get('qbt/qbtRule/law/search',p),//获取征信规则管理

  getCreditFeatureList:(p) => get('qbt/qbtRule/credit/characteristic',p),//获取征信特征列表

  getLawTypeList:(p) => get('qbt/qbtRule/law/type',p),//获取法诉涉诉类型列表

  getFeatureByLawType:(p) => get('qbt/qbtRule/law/characteristic',p),//根据涉诉类型 获取特征

  addCreditRule:(p) => postObj('qbt/qbtRule/credit/save',p),//新增征信规则

  editCreditRule:(p) => putAction('qbt/qbtRule/credit/update',p),//修改征信规则

  delCreditsRule:(p) => Delete('qbt/qbtRule/credit/delete',p),//删除征信规则

  delLawsRule:(p) => Delete('qbt/qbtRule/law/delete',p),//删除法诉规则
  
  addLawsRule:(p) => postObj('qbt/qbtRule/law/save',p),//新增法诉规则
  
  editLawsRule:(p) => putAction('qbt/qbtRule/law/update',p),//修改法诉规则

  
  editLawsRuleState:(p) => putAction('qbt/qbtRule/law/revise',p),//修改法诉状态

  editCreditRuleState:(p) => putAction('qbt/qbtRule/credit/revise',p),//修改法诉状态
  
  getProductOrderList:(p) => get('/business/productCenter/record/list',p),//获取法诉涉诉类型列表

  getProductOrderSum:(p) => get('/business/productCenter/record/summary',p),//获取法诉涉诉类型汇总

}

export default app